import request from '@/utils/request'

export default {
  getUserAuthList(page, limit) {
    return request({
      url: `/userAuth/selectUserAuth/${page}/${limit}`,
      method: 'get'
    })
  },
  searchUserAuthList(page, limit, authObj) {
    return request({
      url: `/userAuth/selectUserAuth/${page}/${limit}`,
      method: 'post',
      data: authObj
    })
  },

  passAuthList(authObj) {
    return request({
      url: `/userAuth/updateUserAuth/`,
      method: 'post',
      data: authObj
    })
  },

  refuseApply(authObj) {
    return request({
      url: `/userAuth/updateNoUserAuth/`,
      method: 'post',
      data: authObj
    })
  },

  getGoodsList(page, limit) {
    return request({
      url: `/goods/getGoods/${page}/${limit}`,
      method: 'get'
    })
  },

  searchGoodsList(page, limit, goodsObj) {
    return request({
      url: `/goods/getGoods/${page}/${limit}`,
      method: 'post',
      data: goodsObj
    })
  },

  getAddress(addId) {
    return request({
      url: `/addressController/listAddress/${addId}`,
      method: 'get'
    })
  },

  passGoods(goodsObj) {
    return request({
      url: `/goods/updateGoods/`,
      method: 'post',
      data: goodsObj
    })
  },

  refuseGoods(goodsObj) {
    return request({
      url: `/goods/updateGoods/`,
      method: 'post',
      data: goodsObj
    })
  }

}
